r=int(input())
if r%8==0 or r%8==7:
    print("百日草")
elif r%8==1 or r%8==2:
    print("菊花")
else:
    print("牡丹")